/*
 * @Descripttion: GGB
 * @version: 1.0
 * @Author: GGB
 * @Date: 2022-01-18 21:09:23
 * @LastEditors: GGB
 * @LastEditTime: 2022-01-19 06:32:21
 */
import React from 'react'
import PropTypes from 'prop-types';
import { Button } from 'antd'

const ButtonBtn = ({text,icon,type,onClick}) => { 

    return (
        <>
            <Button block={true} type={type} icon={icon} onClick={onClick}>{ text}</Button>
        </>
    )

}
ButtonBtn.propTypes = {
    text: PropTypes.string,
    icon: PropTypes.element,
    type:PropTypes.string,
    onclick:PropTypes.func
    
}
ButtonBtn.defaultProps = {
    text: '新建',
    type: 'default',
}

export default ButtonBtn